import request from "../index.js";

// 获取销售详情
export const getUserDetailApi = (data, type = '') => {
	let url = type ? '/sale/sale_temp?action=save' : '/sale/sale_temp'
	return request({
		url: url,
		method: 'post',
		data
	})
}
// 获取销售区域
export const getSaleAreaApi = (data) => {
	return request({
		url: '/index/region_list',
		data
	})
}
// 修改销售状态
export const setUserStatusApi = (data) => {
	return request({
		url: '/sale/sale_update',
		method: 'post',
		data
	})
}
// 获取销售余额记录
export const getBalanceRecordApi = (data) => {
	return request({
		url: '/sale/wallet_log',
		data
	})
}